package com.xdp.aop;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @description:
 * @author: dengPing.xu
 * @date: 2022-05-31
 */
@RestControllerAdvice
public class GlobalException {
    @ExceptionHandler
    public String handleException(Exception e){
        return e.getMessage();
    }
}
